#ifndef __STDFIFO_H__
#define __STDFIFO_H__
#include<stdbool.h>
#include<stddef.h>
enum FIFOMode
{
    ReadOnly,
    WriteOnly
};
typedef enum FIFOMode FMode;

struct StdFIFO;//声明
typedef struct StdFIFO FIFO;

FIFO *FIFOInit(const char* filePath,FMode mode);
bool ReadFromFIFO(FIFO *f, void *p, size_t size);
bool WriteFromFIFO(FIFO *f, void *p, size_t size);
void ClearFIFO(FIFO *f);
#endif